#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	char c;
	char s[256];
	int i=0;
	int l;
	int count[10]={0};
	while(c!='\n')
    {
		if(i<256-1)
		{
			c=getchar();
			s[i]=c;
			i++;
		}
		else
		{
			break;
		}
	}
	s[i]='\0';
	l=i-1;
    for(i=0;i<l;i++)
    {
		switch(s[i])
		{
			case '0':
			count[0]++;
				break;
            case '1':
				count[1]++;
				break;
			case '2':
				count[2]++;
				break;
			case '3':
				count[3]++;
				break;
			case '4':
				count[4]++;
				break;
			case '5':
				count[5]++;
				break;
			case '6':
				count[6]++;
				break;
			case '7':
				count[7]++;
				break;
			case '8':
				count[8]++;
				break;
			case '9':
				count[9]++;
				break;
		}
	}
	for(i=0;i<10;i++)
	{
		cout<<count[i]<<" ";
	}
	return 0;
}
